#include <stdlib.h>
#include <time.h>

static char _isInitialize = 0;

static void _UtilRandInit()
{
    if (!_isInitialize)
    {
        _isInitialize = 1;
        srand((int)time(0));
    }
}

int32_t UtilRand()
{
    _UtilRandInit();
    return (int)rand();
}
